package com.cims.bo.product;

import java.util.List;

import com.cims.common.exception.BoException;
import com.cims.common.vo.Product;
import com.cims.dao.product.ProductDAO;
import com.cims.dao.product.ProductDAOImpl;

public class ProductBOImpl implements ProductBO{

	ProductDAO	dao	= new ProductDAOImpl();

	@Override
	public List<Product> getListProduct() throws BoException{
		try{
			return dao.getListProduct();
		}catch(Exception e){
			return null;
		}
	}

	@Override
	public Product findByProductId(int proId) throws BoException{
		try{
			return dao.findByProductId(proId);
		}catch(Exception e){
			return null;
		}
	}

}
